//
//  CZSelectCarCell.m
//  TCProject
//
//  Created by admin on 16/1/20.
//  Copyright © 2016年 wise-wing. All rights reserved.
//

#import "CZSelectCarCell.h"

@interface CZSelectCarCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *statusView;

@end

@implementation CZSelectCarCell

- (void)awakeFromNib {
    // Initialization code
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    self.statusView.image = [UIImage imageNamed:selected ? @"agree_on" : @"agree_off"];
}



- (void)setCar:(CZCar *)car
{
    _car = car;
    self.titleLabel.text = [NSString stringWithFormat:@"%@:%@  %@%@", _car.style1Name, _car.styleName, _car.licensePlate, _car.licensePlateNum];
}
@end
